<extend name="./Application/Admin/View/Layout/application.html"/>


<block name="content">
    <!--左侧-->
    <div class="col-sm-9">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">文章列表</h3>
            </div>
            <div class="panel-body">
                <form action="" method="post" class="form">
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th><input type="checkbox" class="parent_checked"></th>
                            <th>标题</th>
                            <th>所属栏目</th>
                            <th>发布日期</th>
                            <th>排序</th>
                            <th colspan="2">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="articles" id="article">
                            <tr>
                                <td><input type="checkbox" class="child_checked" name="id[]" value="{{$article.id}}">
                                </td>
                                <td >{{$article.title}}</td>
                                <td></td>
                                <td>{{$article.time|date="y-m-d",###}}</td>
                                <td>

                                </td>
                                <td><a href="{{:U('edit', array('id'=>$article['id']))}}"><span
                                        class="glyphicon glyphicon-pencil"
                                        aria-hidden="true"></span></a></td>
                                <td><a href="{{:U('delete', array('id'=>$article['id']))}}"><span
                                        class="glyphicon glyphicon-trash"
                                        aria-hidden="true"></span></a>
                                </td>
                                <!--U里面数组带值只能使用方括号-->
                            </tr>
                        </volist>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
    <!--右侧-->
    <div class="col-sm-3">
        <ul class="list-group">
            <a href="{{:U('add')}}" class="add list-group-item list-group-item-warning">添加文章</a>
            <a href="javascript:void 0;" class="delete_all list-group-item list-group-item-danger">删除文章</a>
            <a href="javascript:void 0;" class="sort_order list-group-item list-group-item-success">文章排序</a>
        </ul>
    </div>

</block>



